﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Views_category : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        loadBind();
    }
    public void loadBind()
    {
       // if(Request.QueryString("category_id")==null){
            productBus proBus = new productBus();
            DataTable dt = new DataTable();
            dt = proBus.getProductsByCatagory_id(Convert.ToInt32(Request.QueryString["category_id"]));
            productsByCategoryId.DataSource = dt;
            productsByCategoryId.DataBind();
        //}else{

        //}
    }
}